package com.mht2017.common.mongo.dto;

import java.util.List;

/**
 * mongodb中的对象在java内存中的bean
 *
 * @author yutong.xiao
 */
public class SearchConfigTableDto {

	/** 记录该表在配置中定义的顺序，从0开始 **/
	private int index;
	private String dataSourceName;
	private String tableName;
	private List<SearchConfigTableColumnDto> tableColumns;

	public String getDataSourceName() {
		return dataSourceName;
	}

	public void setDataSourceName(String dataSourceName) {
		this.dataSourceName = dataSourceName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public List<SearchConfigTableColumnDto> getTableColumns() {
		return tableColumns;
	}

	public void setTableColumns(List<SearchConfigTableColumnDto> tableItem) {
		tableColumns = tableItem;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	@Override
	public String toString() {
		return "SearchConfigTableDto [index=" + index + ", dataSourceName=" + dataSourceName + ", tableName=" + tableName + ", tableColumns=" + tableColumns + "]";
	}
}
